package org.example.intelligent_education.service;

import org.example.intelligent_education.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;
    public Integer addCourse(String cname, String caname, String tname, String synopsis, BigDecimal price){
        return adminMapper.addCourse(cname,caname,tname,synopsis,price);
    }

    public Integer delCourse(int cid){
        return adminMapper.delCourse(cid);
    }
}
